<template>
  <div class="InteracTion">
    <div class="InteracTion-div">
      <p class="InteracTion-b">对我感兴趣</p>
      <p class="InteracTion-b">看过我</p>
      <p class="InteracTion-b">看过我</p>
    </div>
    <div class="main" v-for="(v,i) in this.$store.state.xingyu.Xy" :key="i" @click="fun(v)">
      <div class="one">
        <b>{{v.jobone}}</b>
        <span class="green">{{v.distance}}</span>
      </div>
      <div class="two">
        <b>{{v.jobname}}</b>
        <span>{{v.juli}}</span>
      </div>
      <div class="jingyan">
        <div>{{v.address}}</div>
        <div>{{v.experience}}</div>
        <div>{{v.education}}</div>
      </div>
      <div class="text">
        <div>{{v.jobcontentone|jieqq}}</div>
      </div>
      <div class="name">
        <div>{{v.position}}</div>
      </div>
      <div class="bottom">
        <div>{{v.last}}</div>
      </div>
    </div>
    <DownDown/>
  </div>
</template>

<script>
export default {
data(){
  return{
  }
},
mounted(){
      this.$store.dispatch("QWER_QQ")
    },
    filters: {
            jieqq(val) {
            if (val.length > 8) {
            return val.substr(0, 50) + "..."
                    } else {
                        return val
                    }
              }
            },
}
</script>

<style lang="scss" scoped>
  a,
u {
 text-decoration: none;
}
/* 清楚默认加粗效果 让加粗标签不加粗 */
b,
strong {
 font-weight: 400;
}
.InteracTion{
  background-color: #efe7e7;
  .InteracTion-div{
    background-color: white;
    height: 2.8125rem;
    display: flex;
    justify-content: flex-start;
    line-height: 2.8125rem;
  }
  .InteracTion-b{
  margin-left: .625rem;
}
.main{
  background-color: white;
  width: 20rem;
  margin: 0 auto;
  border-radius: .3125rem;
padding: .625rem 1.25rem;
display: flex;
flex-direction: column;
margin-top: .9375rem;
.one,.two{
  display: flex;
  justify-content: space-between;
  padding: .3125rem 0 ;
}
.jingyan{
  display: flex;
  div{
    margin-right: .3125rem;
    background-color:#f7f7f7 ;
  }
}

}
}

</style>